Developer Documentation

QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Managing Surface Shaders

QuickDraw 3D provides routines that you can use to manage surface shaders.

Q3SurfaceShader_GetType

You can use the Q3SurfaceShader_GetType function to get the type of a surface shader.

TQ3ObjectType Q3SurfaceShader_GetType (TQ3SurfaceShaderObject shader);
shader
A surface shader.

DESCRIPTION

The Q3SurfaceShader_GetType function returns, as its function result, the type of the surface shader specified by the shader parameter. The types of surface shaders currently supported by QuickDraw 3D are defined by these constants:

kQ3SurfaceShaderType_Texture

If the specified surface shader is invalid or is not one of these types, Q3SurfaceShader_GetType returns the value kQ3ObjectTypeInvalid .


© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |